package com.loongtech.bi.entity.bigr;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "bigr_total_situation")
public class GatherGeneralSituation implements Serializable {
    private final static long serialVersionUID = 2L;

    @Id
    private String day; // 日期
    @Id
    private String channel;
    @Id
    private int category;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int totalusernumber;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int thirtydayusernumber;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int dayactiveusernumber;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float userpercent;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int newusernumber;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int newuserqian;
    @Column(columnDefinition="int(11) NOT NULL default 0")
    private int activeuserqian;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float newuserqianpercent;
    @Column(columnDefinition="float NOT NULL default 0.0")
    private float activeuserqianpercent;

    public String getKey() {
        return  day + "-" + channel + "-" + category;
    }
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDay() {
        return day;
    }

    public String getChannel() {
        return channel;
    }

    public int getCategory() {
        return category;
    }

    public int getTotalusernumber() {
        return totalusernumber;
    }

    public int getThirtydayusernumber() {
        return thirtydayusernumber;
    }

    public int getDayactiveusernumber() {
        return dayactiveusernumber;
    }

    public float getUserpercent() {
        return userpercent;
    }

    public int getNewusernumber() {
        return newusernumber;
    }

    public int getNewuserqian() {
        return newuserqian;
    }

    public int getActiveuserqian() {
        return activeuserqian;
    }

    public float getNewuserqianpercent() {
        return newuserqianpercent;
    }

    public float getActiveuserqianpercent() {
        return activeuserqianpercent;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public void setTotalusernumber(int totalusernumber) {
        this.totalusernumber = totalusernumber;
    }

    public void setThirtydayusernumber(int thirtydayusernumber) {
        this.thirtydayusernumber = thirtydayusernumber;
    }

    public void setDayactiveusernumber(int dayactiveusernumber) {
        this.dayactiveusernumber = dayactiveusernumber;
    }

    public void setUserpercent(float userpercent) {
        this.userpercent = userpercent;
    }

    public void setNewusernumber(int newusernumber) {
        this.newusernumber = newusernumber;
    }

    public void setNewuserqian(int newuserqian) {
        this.newuserqian = newuserqian;
    }

    public void setActiveuserqian(int activeuserqian) {
        this.activeuserqian = activeuserqian;
    }

    public void setNewuserqianpercent(float newuserqianpercent) {
        this.newuserqianpercent = newuserqianpercent;
    }

    public void setActiveuserqianpercent(float activeuserqianpercent) {
        this.activeuserqianpercent = activeuserqianpercent;
    }
}
